package com.dps.metrics.factory;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class GlobalMetricsFactory {

    private static final Logger log = LoggerFactory.getLogger(GlobalMetricsFactory.class);
    private static MetricsFactory metricsFactory;

    public GlobalMetricsFactory() {
    }

    public static MetricsFactory getGlobal() {
        return metricsFactory;
    }

    public static void registered(MetricsFactory metricsFactory) {
        GlobalMetricsFactory.metricsFactory = metricsFactory;
    }

    static {
        registered(new NoopMetricsFactory());
    }
}
